#ifndef BSP_TIM_H
#define BSP_TIM_H
#include "stm32f1xx_hal.h"
#include "bsp_gpio.h"
extern TIM_HandleTypeDef Fan_PWM_TIM_Handle;

//延时
#define  DELAY_TIMx_CLK_ENABLE()    __HAL_RCC_TIM2_CLK_ENABLE()
#define  DELAY_TIMx                 TIM2
#define  DELAY_TIMx_IRQn            TIM2_IRQn
//PWM输出
#define  PWM_TIMx_CLK_ENABLE()      __HAL_RCC_TIM3_CLK_ENABLE()
#define  PWM_TIMx                   TIM3
#define  PWM_CHANNELx               TIM_CHANNEL_1
//函数声明
void Delay_TIM_Init(void);
void Delay_ms(uint32_t ms);
void Delay_us(uint32_t us);
void Fan_PWM_TIM_Init(void);
#endif // !BSP_TIM_H